package com.yqb.study.constant.multidatasource;

/**
 * 与配置文件application.yml中使用数据源注意保持同步
 */
public enum DataSourceEnum {
	MASTERDB("dataSourceMaster", "主库"),
	CLUSTERDB("dataSourceCluster", "备库");
	
	private final String nameEn;
	private final String nameCn;
	
	DataSourceEnum(String nameEn, String nameCn) {
		this.nameEn = nameEn;
		this.nameCn = nameCn;
	}

	public String getNameEn() {
		return nameEn;
	}

	public String getNameCn() {
		return nameCn;
	}
}
